const Koa = require('koa2')

const app = new Koa()

app.use(async (cxt, next) => {
    console.log(1)
    await next()
    console.log(1)
})

app.use(async (cxt, next) => {
    console.log(2) 
    await next()

    console.log(2)
})

app.use(async (cxt) => {
    console.log(3)
})

app.listen(3000)